package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysRoleUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleUserMapper extends BaseMapper<SysRoleUser> {
    List<Long> selectRoleIdsByUserId(Long userId);

    void deleteByUserId(Long userId);

    void doAssign(Long userId, Long roleId);
}
